package com.osi.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author lixin
 */
@Data
@TableName("student")
@NoArgsConstructor
@AllArgsConstructor
public class Student {

    /**
     * 学生编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 登录账号
     */
    private String username;

    /**
     * 登录密码
     */
    private String password;

    /**
     * 学生姓名
     */
    private String name;

    /**
     * 学生性别 0女 1男
     */
    private Integer sex;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date birthday;


    private String phone;

    private String email;

    private String school;

    private String tip;

    private Integer status;


    @TableField(exist = false)
    private Integer isAgreed;

}
